package hyl.core.db;

import java.util.List;
import java.util.Map;

public interface IDb {
	boolean commit();

//	MyConnection getConn();
	// int getType();
//	Array getInArray(String intype, Object[] objes) throws SQLException;
	Object querySingle(String sql, Object[] params);

	Map<String, Object> queryMap(String sql, Object[] params);

	List<Map<String, Object>> queryList(String sql, Object[] params);

	List<List<Object>> queryList2D(String sql, Object[] params);

	Object excuteFun(String sql, Object[] inparams);

	Object excuteFun(String sql, Object[] params, Integer outParamPos, Integer outType);

	Long executeUpdate(String sql, Object[] bindArgs);

	Boolean executeUpdate(String sql);

	Integer batch(String sql, List<Object[]> sqlparams);

	Integer batch(List<String> sqls);

	void timeoutCommit(Integer periodms);
}
